import 'package:json_annotation/json_annotation.dart';

part 'favorable.g.dart';

@JsonSerializable()
class FavorableChoiceModel {

  String name;

  double price;

  String imgUrl;

  FavorableChoiceModel({ required this.name, required this.price, required this.imgUrl });

  factory FavorableChoiceModel.fromJson(Map<String, dynamic> json) =>
      _$FavorableChoiceModelFromJson(json);

  Map<String, dynamic> toJson() => _$FavorableChoiceModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}